Ejects or unmounts any currently mounted volume depending if it's ejectable or not.
err integer returns the error which occured. A value of
zero indicates no error occured. See below
for a list of possible errors.
volname string (max. 27) contains the volume name you want to
eject. Actually this may be a full path to a
file or folder (max. length 255). As long as it
starts with a volume name it will be
succesfully ejected or unmounted. If the file
or folder does not exist no error will be
returned.
The volume with the System Folder or with the Virtual Memory storage file can not be ejected and, when trying to do so, will return an error. You can call this function for every volume you want. If it is used with a non-ejectable volume it will be unmounted instead of ejected.
Use this function to unmount any volume you don't know for sure it's ejectable or not.
Note: The length specified with a string is the maximum length possible. The external does not test for the size of the variables. Please, declare the string you use to the correct length. Use of these commands inside the Debugger window is not recommended.
Possible errors:
    0  No Error
  -35  Volume with that name not found
  -36  I/O error
  -37  Bad volume name
  -47  One or more files are open on that volume
  -50  Parameter error (no volume name passed)
  -55  Volume off-line or ejected
  -58  External File system error; function not available for that